package log

import (
	"github.com/beego/beego/v2/core/logs"
)

//初始化logs
func init() {
	err := logs.SetLogger(logs.AdapterFile, `{"filename":"rxw.log","level":7,"maxlines":0,"maxsize":0,"daily":true,"maxdays":10,"color":true}`)
	if err != nil {
		panic("设置日志配置出现错误：" + err.Error())
	}
	logs.SetLogFuncCallDepth(3)
	logs.SetLogger("console")
	logs.Info("日志初始化成功")
}
